import * as home from './action-type';

let defaultState = {
  state:null,
  height:0,
}
// 首页表单数据
export const homeData = (state = defaultState , action = {}) => {
  switch(action.type){
    case home.SAVEFORMDATA:
      return {...action['value']};
    case home.CLEARDATA:
      return {...state, ...defaultState};
    default:
      return state;
  }
}

